package com.example.tianling.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.tianling.common.vo.bookListVo;
import com.example.tianling.entity.BookEntity;
import com.example.tianling.entity.UserBookMarksEntity;
import com.example.tianling.entity.UserEntity;

import java.text.ParseException;
import java.util.List;

public interface UserBookMarksService extends IService<UserBookMarksEntity> {
    Integer setBookMark(UserBookMarksEntity userBookMarksEntity, Integer userId) throws ParseException;
    Integer cancelMyBookCollection(Integer userId ,Integer bookId);
    List<bookListVo> getMyBookMark(Integer userId, Integer pageNum, String type);
    Integer iscollectBook(Integer userId ,Integer bookId);
}
